<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

		<script type="text/javascript" charset="utf-8" src="/static/ueditor/ueditor.config.js"></script>
		<script type="text/javascript" charset="utf-8" src="/static/ueditor/ueditor.all.js"></script>
		 <script type="text/javascript" charset="utf-8">
			window.UEDITOR_HOME_URL = "/static/ueditor/";
			window.onload=function(){
				window.UEDITOR_CONFIG.initialFrameHeight=300;//编辑器的高度
			   	window.UEDITOR_CONFIG.initialFrameWidth=800;//编辑器的宽度
			   	var editor = new UE.ui.Editor({
					imageUrl : '/Editor/uploadImage',
					fileUrl : '/Editor/uploadFile',
					imagePath : '',
					filePath : '',
					imageManagerUrl:'/Editor/imageManage', //图片在线管理的处理地址
					imageManagerPath:'/'
				});
				editor.render("message_content");
			}
		</script>
	<style type="text/css">
		.hidden{display: none};
	</style>
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
		<title>大波</title>

	</head>
	<body>
		<div>
				<?php echo ($article["article_content"]); ?>

				
				<input id="show_message_box_btn" type="button" value="留言">
				<form action="<?php echo U('admin/message/add');?>" method="post">
				<div id="message_box" class="hidden">
					<textarea id="message_content" name="message_content"></textarea>
				</div>
				<input type="submit" value="发表" id="submit">
				</form>
				
		</div>

<script src="/static/assets/js/jquery.min.js"></script>
<script type="text/javascript">
	$(function () {
		$('#show_message_box_btn').click(function () {
			if($("#message_box").hasClass("hidden")){
				$("#message_box").removeClass("hidden");
			} else {
				$("#message_box").addClass("hidden");
			}
		});
	});
</script>
	</body>
</html>